<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <META http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>View Source App</title>
  <link link href="_/css/grids-min.css" rel="stylesheet" type="text/css" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
  <link link href="_/css/v3.css" rel="stylesheet" type="text/css" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
  <link link href="_/css/downloads.css" rel="stylesheet" type="text/css" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
  <link href='https://fonts.googleapis.com/css?family=Exo:700,700italic|Average' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" type="text/css" href="_/css/mystyle.css">
  <script type="text/javascript" src="_/js/jquery-1.8.2.min.js"></script>
  <script type="text/javascript" src="_/js/myscript.js"></script>

</head>

<body>

	<div id="fb-root"></div>
	<div id="content">
		<div id="main">
		  	<div id="fb-root"></div>
		  	<div id="mymessage"></div>
			<div id="welcome"></div>
	</div><!--content -->
    	<?php
	      // inserts the contents of the file "facebook_include.php" as if 
	      //   those same lines had been typed here.
	     //require_once("facebook_func.php");
	     require_once("facebook_include1.php");

	?>
        <script>
              FB.init({
                appId  : $app_id,
                frictionlessRequests: true
              });
        
        
        
              function sendRequestViaMultiFriendSelector() {
                FB.ui({method: 'apprequests',
                  message: 'Sign up for a chance to play the Online Token Sharing Game and get rewarded with real money. This is a field study conducted by researchers from University of Minnesota  conducting a field experiment on ...'
                }, requestCallback);
              }
              
              function requestCallback(response) {
                // Handle callback here
              }
            </script>

	<div id="doc" style="width:700px; padding-left:0px; margin-left:0px">
	   <div id="bd">
	   		<div id="yui-main">
				<div class="yui-b">
					<div class="yui-g">
                    	<div align="center">
                    		<div ><a href="http://www.csom.umn.edu" target="_blank"><img src = "./images/carlson_small.jpg"></a></div>
                         </div>
                         <br />
						<div class="pageHeading" style="padding:0px 0px 15px 0px;">Welcome to the Online Token Sharing Game  !!</div>
						<div style="padding:0px 0px 15px 0px;">
							<p class="font4">Hi,<br /><br />  We are a team of researchers from University of Minnesota conducting a field experiment on  ....... . This study is funded by research grants from University of Minnesota  and conforms to the contemporary behavioral research protocol. It has been approved by our institution's Institutional Review Board.</p>
							<p class="font4">This sign up page will give you a chance to participate in our experimental game. Due to significant interest in this game we cannot guarantee you will be selected to play (participants will be randomly selected). However, just for signing up, we will pay you <?php echo currency ?><?php echo sign_up_amount ?>. You can choose to receive the payment <?php if (isdollars == 0) echo "in cash at the Prof Bapna's office or ";?>via Paypal or by a mailed check.</p>
							<p class="font4">After you provide the necessary details and sign up, we will give you the option to invite your friends to be part of our subject pool. Each friend who signs up will also receive the same   <?php echo currency ?><?php echo sign_up_amount ?>  sign up payment and have chance to play our game.</p>
							<p class="font4" style="font-weight:bold;color:green">Please find  here an <a href="InformationSheet.doc">"Information Sheet"</a> that details  how the data will be used in the research.Thanks in advance for helping us with our research!<br/><br/>
STEPS TO  REGISTER:<br/>
1. Click "Register." <br/>
2. First time users will be asked to fill up a form asking for the address and payment type <br/>
3. After you click "Submit" , you will get a screen informing you that you have registered for the study.<br/>
4. You can invite your friends in two ways. <a href="javascript:sendRequestViaMultiFriendSelector();">Click here</a> to invite them through Facebook or you can copy/paste the following text into an email and send it to your friends<br/>
<div >
    <div id='message' class="font4" style="font-weight:bold;color:grey;padding-left: 20px;"  >
            Sign up for a chance to play the Online Token Sharing Game and get rewarded with real money. This is an approved field study conducted by 	researchers from University of Minnesota . If you want to play click on http://apps.facebook.com/jmj_testa/<br/>
            If you have any questions feel free to contact the researchers at rbapna@umn.edu.
            
     </div>
  </div>
</p> 

                    <form action = "register.php"method="post"> 
	          			<div align="center">
								<input type="submit"  name="submitButton" id="submitButton" value="Register &gt;" class="search" style="margin-left:-6.5px" />
								<br />
						</div>
					</form>
		            <br />
		            <div >
		              <p class="font4"><a href="help.php" target="_blank">Click here to learn more about the game or just wait till you get matched to play.</a> Thanks, have fun and in the meanwhile, if you have any questions feel free to contact the researcher at <a href="rbapna@umn.edu">rbapna@umn.edu</a></p>
					 
				
	   		</div>
            <div>
            	<p class="font4"><a href="admin.php" target="_blank">Click here</a> if you are the game administrator.</p>
            </div>
            
	   </div>
</div>
<?php
unset($_SERVER['PHP_AUTH_DIGEST']) ;
?>
</body>
</html>

